{extend name="public/base"}

{block name="title"}
合伙人申请
{/block}

{block name="style"}
{css href="/static/wechat/css/certification.css" /}
{/block}

{block name="body"}
<div class="pageControl orderDetails">
    <div class="msui_nav msui_navTop" style="border-bottom: 1px solid #cccccc;">
        <a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">加盟咨询</h1>
    </div>

    <div class="g-jm-div">
        <p class="fs07">提交您的联系方式及意向，<br/>招商经理会联系您！</p>
    </div>

    <ul class="g-ul-ipt">
        <li class="g-li">
            <div class="g-leb-div"><label>姓名</label></div>
            <div class="g-ipt-div"><input placeholder="请输入您的姓名" name="name"/></div>
        </li>
        <li class="g-li gsolid">
            <div class="g-leb-div"><label>联系电话</label></div>
            <div class="g-ipt-div"><input placeholder="" name="phone"/></div>
        </li>
        <li class="g-li gsolid">
            <div class="g-leb-div"><label>意向区域</label></div>
            <div class="g-ipt-div"><input placeholder="" name="area"/></div>
        </li>
    </ul>

    <!--提交按钮-->
    <a class="u-sub" style="color: #ffffff;" href="javascript:;">提交</a>
</div>
{/block}
{block name="javascript"}
<script>
    $(function () {
        $(".u-sub").click(function () {
            var _name = $("input[name='name']").val();
            var _phone = $("input[name='phone']").val();
            var _area = $("input[name='area']").val();
            $.ajax({
                type : 'POST',
                url : "{:url('base/league_consult')}",
                data : {
                    name : _name,
                    phone : _phone,
                    area : _area
                },
                dataType : 'json',
                success : function (msg) {
                    if (msg.code == 200) {
                        alert('提交成功, 平台会尽快联系您！！');
                    } else {
                        var code = msg.code;
                        $.alert(error_code[code]);
                    }
                }
            });
        });
    });
</script>
{/block}